package com.dlc.shop.seckill.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dlc.shop.bean.model.SeckillStockPointSku;

import java.util.List;

/**
 *
 *
 * @author FrozenWatermelon
 * @date 2023-11-23 15:32:01
 */
public interface SeckillStockPointSkuService extends IService<SeckillStockPointSku> {


    /**
     * 根据id获取
     *
     * @param seckillStockPointSkuId id
     * @return
     */
    SeckillStockPointSku getBySeckillStockPointSkuId(Long seckillStockPointSkuId);

    /**
     * 更新
     * @param seckillStockPointSku
     */
    void update(SeckillStockPointSku seckillStockPointSku);

    /**
     * 根据id删除
     * @param seckillStockPointSkuId id
     */
    void deleteById(Long seckillStockPointSkuId);

    /**
     * 批量保存库存点和商品关联
     * @param stockPointDTOList
     */
    void batchSave(List<SeckillStockPointSku> stockPointDTOList);
}
